﻿#pragma once
#include <cstdio>
#include <string>

namespace DYGraphics
{
	// 每个顶点绑定骨骼的权重，每个顶点最多绑定4个骨骼，
	// 如果boneIndex为-1，则表示没有绑定骨骼
	class _declspec(dllexport) BoneWeight
	{
	public:
		int boneIndex1 = -1;
		float boneWeight1 = 0;
		int boneIndex2 = -1;
		float boneWeight2 = 0;
		int boneIndex3 = -1;
		float boneWeight3 = 0;
		int boneIndex4 = -1;
		float boneWeight4 = 0;

	public:
		BoneWeight() { }

		void Set(int pIndex, float pWeight);
	};
}